#ifndef BLOCK_H
#define BLOCK_H

#include <d3d9.h>
#include <d3dx9.h>


struct CUSTOMVERTEX { FLOAT X, Y, Z; DWORD COLOR; FLOAT U, V; };
#define CUSTOMFVF (D3DFVF_XYZ | D3DFVF_DIFFUSE | D3DFVF_TEX1)
#pragma once
class block
{
public:
	block(IDirect3DDevice9 *d3ddev, FLOAT X, FLOAT Y, FLOAT Z, INT blockType);
	LPDIRECT3DVERTEXBUFFER9& getVBuffer() { return m_vbuffer; };
	LPDIRECT3DINDEXBUFFER9& getIBuffer() { return m_ibuffer; };
	LPDIRECT3DTEXTURE9& getTexture() { return m_texture; };
	~block();

private:
	LPDIRECT3DVERTEXBUFFER9 m_vbuffer = NULL;
	LPDIRECT3DINDEXBUFFER9 m_ibuffer = NULL;
	LPDIRECT3DTEXTURE9 m_texture = NULL;

};
#endif
